(function (angular) {
    'use strict';

    angular.module('ytong.controllers').controller('adminDashCtrl',adminDashCtrl);

    function adminDashCtrl($scope, feedbacksManager, usersManager){
        $scope.delayed_feedbacks = feedbacksManager.getDealayedFeedbacks();

        this.areThereDelayedFeedbacks = function(){
            return $scope.delayed_feedbacks.length != 0;
        };

        this.getFeedbackUsername = function(feedback){
            return usersManager.getUsername(feedback.user);
        };
    };

}(angular));